package com.software.levelupandroid.utils;

/**
 * @Description TODO
 * @Author LiangYaJie
 * @CreateTime 2024年05月05日 15:40:58
 */
public class StringUtil {
    public static String monthToStr(int mon){
        String month = String.valueOf(mon);
        if (month.length()<2){
            month = '0' + month;
        }
        return month;
    }

    public static boolean isNotEmpty(String str){
        if (str != null && !str.isEmpty() && str != ""){
            return true;
        }
        return false;
    }

    public static boolean isEmpty(String str){
        if (str == null || str.isEmpty()){
            return true;
        }
        return false;
    }

    public static String cleanEmail(String email){
        return email.replaceAll("[^a-zA-Z0-9]","");
    }
}
